package sk.stuba.fiit.pki.service;

import java.math.BigInteger;

public interface SerialService {
	public BigInteger allocateCRLSerialNumber();
	public  BigInteger allocateCertSerialNumber();
	public BigInteger allocateTimeStampSerialNumber();
	public BigInteger allocateOcspSerialNumber();
	
	public static final String CRL_SEQ_NAME= "crlSeq";
	public static final String OCSP_SEQ_NAME= "ocspSeq";
	public static final String CERT_SEQ_NAME= "certSeq";
	public static final String TS_SEQ_NAME= "tsSeq";
	
	public static final BigInteger CRL_SEQ_VAL = new BigInteger("5");
	public static final BigInteger OCSP_SEQ_VAL = new BigInteger("3");
	public static final BigInteger CERT_SEQ_VAL = new BigInteger("9");
	public static final BigInteger TS_SEQ_VAL = new BigInteger("2");
	public void dealocateSerialNumber();
}
